package com.spider.object;

public class Test1 {
    public static void main(String[] args) {
        //创建对象
        //创建对象的格式: 类名 对象名 = new 类名();
        Star star = new Star();
        star.name = "王宝强";
        star.age = 40;
        star.sex = "男";
        star.weight = 80.5;
        star.height = 170.5;
        System.out.println(star.name);
        System.out.println(star.age);
        System.out.println(star.sex);
        System.out.println(star.weight);
        System.out.println(star.height);
        System.out.println("===================");

    }
}
